import sys

arr = (input().split())
sum = 0
for i in arr:
    sum+=int(i)

m = sum/len(arr)
print(sum,'%.1f'%m)